package com.ruoyi.web.controller.common;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.vo.QiNiuVo;
import com.ruoyi.system.service.IQiNiuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @description: 七牛云
 * @author: yxp
 * @create: 2020/08/08
 * @version: 1.0
 */
@RestController
@RequestMapping("/qiniu")
public class QiNiuController {
	@Resource
	IQiNiuService qiNiuService;

	@GetMapping("/token")
	public AjaxResult getToken(){

		QiNiuVo token = qiNiuService.getToken();
		return AjaxResult.success(token);
	}

}
